/******************************************************************************
 * SVN­Version­Information:
 * ­­­­­­­­­­­­­­­­­­­­­­­­---------------------
 * $LastChangedRevision: 130 $
 * $LastChangedBy: SD $
 * $LastChangedDate: 2009-06-23 17:42:49 +0200 (Tue, 23 Jun 2009) $
 * $HeadURL: svn://lvis10.fbm.fht-stuttgart.de/common/Common/src/de/hft_stuttgart/botwar/common/models/ShieldInfo.java $
 ******************************************************************************/
package de.hft_stuttgart.botwar.common.models;

import java.io.Serializable;

/**
 * Shield info
 * @author pmv-mail@gmx.de, c.a.duevel@gmail.com, sdegiorgi@gmail.com
 */
public class ShieldInfo implements Serializable {
    private int levelRank, cost, health, weight;
    private String name;

    /**
     * Shield Info
     * @param levelRank level of the item
     * @param cost price you pay for the item
     * @param health health you gain from the item
     * @param weight weight of the item
     * @param name human readable name
     */
    public ShieldInfo(final int levelRank, final int cost, final int health,
            final int weight, final String name) {
        this.levelRank = levelRank;
        this.cost = cost;
        this.health = health;
        this.weight = weight;
        this.name = name;
    }

    /**
     * Returns the level of the item
     * @return needed level for this shield
     */
    public int getLevelRank(){
       return levelRank;
    }

    /**
     * Returns the price of the item
     * @return price of item
     */
    public int getCost() {
        return cost;
    }

    /**
     * Sets the price of an item
     * @param cost the price of the item
     */
    public void setCost(final int cost) {
        this.cost = cost;
    }

    /**
     * Returns the provided health of an item
     * @return health provided by shield
     */
    public int getHealth() {
        return health;
    }

    /**
     * Sets the health of an item
     * @param health the health value of the item
     */
    public void setHealth(final int health) {
        this.health = health;
    }

     /**
     * Returns the human readable name of the item
     * @return Name of the item
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the name of an item
     * @param name the name of the item
     */
    public void setName(final String name) {
        this.name = name;
    }

    /**
     * Returns the weight of the item
     * @return the weight of the item
     */
    public int getWeight() {
        return weight;
    }

    /**
     * Sets the weight of an item
     * @param weight the weight of the item
     */
    public void setWeight(final int weight) {
        this.weight = weight;
    }

}

